﻿@model Dyn.News.Models.ArticlePart
@using Dyn.News.Models;
@{
    ArticlePart news = Model as ArticlePart;
    }
<fieldset>
     <div class="item">
        <div class="item-lable">@Html.LabelFor(m => m.Sumary, T("Sumary"))</div>
        <div class="item-editor">@Html.TextAreaFor(m => m.Sumary, 5, 60, null)</div>
        <div class="item-validate">@Html.ValidationMessageFor(m => m.Sumary, "*")</div>
    </div>
    <div class="item">
        <div class="item-lable">@Html.LabelFor(m => m.Author, T("Author"))</div>
        <div class="item-editor">@Html.TextBoxFor(m => m.Author, new { @class = "large text" })</div>
        <div class="item-validate">@Html.ValidationMessageFor(m => m.Author, "*")</div>
    </div>
    @* <div class="item">
        <div class="item-lable">@Html.LabelFor(m => m.Visited, T("Visited"))</div>
        <div class="item-editor">@Html.TextBoxFor(m => m.Visited)</div>
        <div class="item-validate">@Html.ValidationMessageFor(m => m.Visited, "*")</div>
    </div>*@
    <div class="item">
        <div class="item-lable">@Html.LabelFor(m => m.CategoryPart.Name, T("Category"))</div>
       @* @try
        {
        <div class="item-editor">@Html.DropDownListFor(m => m.CategoryPart.Name, new SelectList(Model.CategoryParents, "Id", "Name"), "Root")</div>
        }
        catch
        { 
        }*@
    </div>
</fieldset>